home *** CD-ROM | disk | FTP | other *** search
/ Cracking 2 / Cracking II..iso / Texty / crackme / SIce&W32.txt < prev    next >
Encoding:
Text File  |  1998-05-11  |  3.7 KB  |  125 lines

  1. SoftIce Useful Commands
  2. ^^^^^^^^^^^^^^^^^^^^^^^
  3.  
  4. [Ctrl]-D  - breaks into or out of Softice
  5. help <command>  - get help on any Softice commands
  6. exit - exit Softice
  7.  
  8. bpx <api function name/code address>
  9.  - set break point on any Win32 API calls, or 
  10.    the specified instruction address.
  11.    example1: bpx GetWindowTextA
  12.    example2: bpx cs:00401234
  13.    (example2 is setting a breakpoint on one of the program's
  14.    instruction. Useful when you know which part of the program
  15.    you want to debug/break into. You can set/unset breakpoint using
  16.    the mouse and double clicking on the instruction in the code window.
  17.    "cs" represents the code segment of the program)
  18.  
  19. bpm <memory address>
  20.  - set break point on memory accesses.  Softice will popup when 
  21.    the specify memory address is being used, read/write to.
  22.    BPM/BPMB - BYTE size memory
  23.    BPMW - WORD size memory (2 bytes)
  24.    BPMD - Double Word size (4 bytes)
  25.  
  26. bpr <start memory address> <end memory address>
  27.  - set break point on a range of memory accesses.  Same function
  28.    as "bpm" but for a wider range of memory.  Use full when the
  29.    exact memory location is unknown.  Or can be used for tracking
  30.    the registration routine when it is hidden from regular breakponts.
  31.  
  32. bl - simply list all of your current break points.
  33.  
  34. bc <breakpoint(s), *>
  35.  - clear certain or all break points.
  36.  
  37. bd <breakpoint(s), *>
  38.  - disable certain or all break points.
  39.  
  40. be <breakpoint(s), *>
  41.  - enable certain or all break points.
  42.  
  43. s <start address> l <finish address> 'string'
  44.  - search a memory range for the specified string.
  45.    example: s 040777C l 08ffffff 'passcode'
  46.  
  47. d <memory address>
  48.  - display the memory contents on the Date window
  49.  
  50. code [on/off]
  51.   - display/hides the instructions bytes in code window
  52.  
  53. wc, wd, wr, wf  - toggles the code, data, register, & floating stack window
  54.  
  55. [F8]   - single step (trace into functions)
  56.          (takes you step by step, and will go into function Calls)
  57.  
  58. [F10]  - step over (skip over function Calls)
  59.          (same as [F8], but will not go into function Calls)
  60.  
  61. [F12]  - return from procedure call, step out of a function
  62.          (if you're in a procedure, and you want to get out of it)
  63.  
  64. HWND - get a list of windows with their handles, for use with "bmsg".
  65.  
  66. bmsg - Window Message Breakpoints (often quite useful)
  67.  Use a window message breakpoint to trap a certain message or range of
  68.  messages delivered to a window procedure.
  69.  
  70.  Example: bmsg <window-handle> <message>
  71.  
  72.  <window-handle> - Value returned when the window was created; you can use
  73.   the "HWND" command to get a list of windows with their handles.
  74.  
  75.  <message> - Single Windows message in a range of Windows messages.  The
  76.   message numbers can be specified either in hexadecimal or by using the
  77.   actual ASCII names of the messages, for example: WM_CHAR, WM_COMMAND.
  78.  
  79.  Example: bmsg 0123 WM_GETTEXT
  80.  
  81.  (be sure to clear the BMSG break point whenever you're done with it,
  82.   otherwise it'll cause the program to crash.  In that case, Softice should
  83.   warn you, and you will need to type in "exit" in Softice's command prompt
  84.   to force the current program to close and clear the error)
  85.  
  86. ---------------------------------------------------------------------------
  87.  
  88. Common Win32 API Calls
  89. ^^^^^^^^^^^^^^^^^^^^^^
  90.  
  91. GetDlgItemText
  92. GetDlgItemTextA
  93. GetWindowText
  94. GetWindotTextA
  95.  
  96. GetDlgItemInt
  97. GetWindowWord
  98. GetWindowLong
  99.  
  100. MessageBox
  101. MessageBoxA
  102. MessageBoxExA
  103. MessageBeep
  104.  
  105. SendMessage
  106. ShowWindow
  107. wsprintf
  108. lstrcat
  109. lstrcatn
  110. lstrcpy
  111. lstrcpyn
  112. lstrlen
  113.  
  114. ReadFile
  115. WriteFile
  116. GetPrivateProfileStringA
  117. GetPrivateProfileIntA
  118. WritePrivateProfileStringA
  119. WritePrivateProfileIntA
  120. RegCreateKey
  121. RegDeleteKey
  122. RegQueryValue
  123. RegCloseKey
  124. RegOpenKey
  125.